Application of speed effects to a video presentation

ABSTRACT

Some embodiments provide a method of specifying speed effects for playing a video clip. The method defines a set of speed effects for the video clip. It then displays in real-time a presentation of the video clip that accounts for the set of speed effects defined for the video clip. In some embodiments, this method represents the playback speed of a video clip in terms of a graph that is part of a graphical user interface (“GUI”). This graph is defined along two axes, with one axis representing the playback time, and the other axis representing the content-time (i.e., the time within the video clip). In these embodiments, a user can change the playback speed of the video clip by using a set of GUI operations to select and modify the graph. For instance, a user can select and adjust the graph at different instances in time in order to change the playback speed of the video clip at these instances. Different embodiments use different types of graphs to represent playback speed. For instance, some embodiments use a deformable line bar that is superimposed on a rectangle that represents the video clip.

FIELD OF THE INVENTION

The present invention is directed towards the application of speedeffects to a video presentation.

BACKGROUND OF THE INVENTION

In recent years, there has been a proliferation of video editingapplications. These applications allow a user to create videopresentations by combining one or more video and audio tracks, andapplying one or more video and/or audio effects to these tracks. Speedeffects are one type of effects that are commonly employed by videoediting applications. Speed effects allow a user to specify differentspeeds for playing different sections of the presentation. For instance,by using speed effects, an editor can divide a video presentation intothree parts, where the first part plays at twice its created rate (e.g.,at 60 frames per second (fps) for a content rate of 30 fps), the secondpart plays at half its created rate (e.g., at 15 fps for a content rateof 30 fps), and the third part plays at 3 times its content rate (e.g.,at 90 fps for a content rate of 30 fps).

Applying speed effects with prior video editing applications is oftendifficult and time consuming. Specifically, prior video editingapplications do not apply speed effects to presentations in real-time.For instance, each time a user (also referred to below as an editor)specifies a new set of speed effects, some prior editing applicationsrender a new media file with the speed effect. This rendering is quitetime consuming. Also, if the editor is not happy with the renderedresults, the editor would have to re-specify the speed effects, andre-render the media file once again. In addition, while the user isspecifying new speed effects, this editing application does not provideadequate feedback regarding the frames on which the speed effects arebeing defined.

Therefore, there is a need for a method that can apply speed effects toa presentation and display the results of this application in real-time.Ideally, this method can apply the speed effects and display the resultswithout having to render the presentation. Furthermore, ideally, thismethod would use an intuitive interface that allows the editor to easilyspecify speed effects and to discern the result of these effects.

SUMMARY OF THE INVENTION

Some embodiments provide a method of specifying speed effects forplaying a video clip. The method defines a set of speed effects for thevideo clip. It then displays in real-time a presentation of the videoclip that accounts for the set of speed effects defined for the videoclip. In some embodiments, this method represents the playback speed ofa video clip in terms of a graph that is part of a graphical userinterface (“GUI”). This graph is defined along two axes, with one axisrepresenting the playback time, and the other axis representing thecontent-time (i.e., the time within the video clip). In theseembodiments, a user can change the playback speed of the video clip byusing a set of GUI operations to select and modify the graph. Forinstance, a user can select and adjust the graph at different instancesin time in order to change the playback speed of the video clip at theseinstances. Different embodiments use different types of graphs torepresent playback speed. For instance, some embodiments use adeformable line bar that is superimposed on a rectangle that representsthe video clip.

BRIEF DESCRIPTION OF THE DRAWINGS

The novel features of the invention are set forth in the appendedclaims. However, for purpose of explanation, several embodiments of theinvention are set forth in the following figures.

FIGS. 1A and 1B illustrate a deformable line bar that is used in someembodiments to define speed effects.

FIG. 2 illustrates a graphical user interface that uses the deformableline bar illustrated in FIGS. 1A and 1B.

FIGS. 3-14 illustrate examples of GUI operations that are performed onthe deformable line bar illustrated in FIGS. 1A and 1B.

FIG. 15 illustrates the software architecture of some embodiments of theinvention.

FIG. 16 illustrates a process that the video editing applicationperforms each time that it potentially receives speed effect additionsor modifications through a speed bar displayed in its GUI.

FIG. 17 illustrates a process that a video-editing application performsto relay the speed effects that are defined by a speed bar to an effectsmanager.

FIG. 18 illustrates that an effects manager provide two sets of framesto the video-editing application when a frame-blending option has beenselected.

FIG. 19 presents a computer system with which one embodiment of theinvention is implemented.

DETAILED DESCRIPTION OF THE INVENTION

In the following description, numerous details are set forth for purposeof explanation. However, one of ordinary skill in the art will realizethat the invention may be practiced without the use of these specificdetails. In other instances, well-known structures and devices are shownin block diagram form in order not to obscure the description of theinvention with unnecessary detail.

Some embodiments of the invention provide a method of specifying speedeffects for playing a video clip. A video clip can be a composite of oneor more video clips, one or more audio tracks, and one or more video andaudio effects. A video clip includes a number of frames, which aretypically presented at a particular frame rate (e.g., at 25 fps, 30 fps,60 fps). At times, each frame is presented in terms of two consecutivefields (e.g., is presented at 50 or 60 fields per second for a 25 or 30fps video clip).

The method of some embodiments defines a set of speed effects for thevideo clip. It then displays in real-time a presentation of the videoclip that accounts for the set of speed effects defined for the videoclip. In some embodiments, this method represents the playback speed ofa video clip in terms of a graph that is part of a graphical userinterface (“GUI”). This graph is defined along two axes, with one axisrepresenting the playback time, and the other axis representing thecontent-time (i.e., the time within the video clip). In theseembodiments, a user can change the playback speed of the video clip byusing a set of GUI operations to select and modify the graph. Forinstance, a user can select and adjust the graph at different instancesin time in order to change the playback speed of the video clip at theseinstances.

I. Graphical User Interface

Different embodiments use different types of graphs to representplayback speed. For instance, some embodiments described below use adeformable line bar to represent the playback speed. Specifically, FIGS.1A and 1B illustrate a deformable line bar 105 that is superimposed on arectangular box 110, which is a graphical representation of a videoclip. In some embodiments, the line bar 105 and the rectangular box 110are part of a graphical user interface (“GUI”) with which the user caninteract through traditional GUI operations, such as click operations(e.g., to select an item), click-and-drag operations (e.g., to move anitem), etc.

FIGS. 1A and 1B also illustrate a playback timeline 115, a contenttimeline 120, and a time marker 125. The timelines 115 and 120 are twoaxes along which the speed bar 105 is defined. The playback timeline 115represents the time during the playback of a video clip, while thecontent timeline represents the time within the video clip. When aneditor has not specified any speed effect for a video clip, the clip'sduration along the playback timeline 115 is the same as the clip'sduration along the content timeline 120. FIG. 1A illustrates such a case(i.e., illustrates a case where the editor has not specified any speedeffect). As illustrated in this figure, the slope of the speed bar 105is 45° in this case, since the playback and content timelines 115 and120 have the same scale in this example.

On the other hand, when the editor specifies one or more speed effectsfor the video clip, the clip's playback duration will be different thanthe clip's content duration. For instance, FIG. 1B illustrates anexample where the editor defines a constant speed effect that specifiesthe playback speed as 1/10^(th) the content speed. In this example, thespeed bar has a constant slope of 0.1, since the two timelines have thesame scale.

The time marker 125 identifies the portion of the video clip that isdisplayed at each instance in time. Specifically, when the video clip isplaying, the time marker 125 moves along the timeline 115 at aparticular playback rate (e.g., 25, 30, or 60 fps). The intersection ofthis marker at a particular playback time with the speed bar 105identifies the video frame that is to be displayed at the particulartime. For example, in FIG. 1B, the marker 125 at playback time 130intersects the speed graph at point 135, which occurs at time 140 alongthe content timeline 120. Accordingly, in this example, the frame thatis to be displayed at playback time 130 is the frame that appears in thevideo clip at time 140 of the video clip. A user can drag the timemarker 125 to a particular time on the timeline 115 to view thevideo-clip frame at that time.

The GUI of some embodiments of the invention have a preview window thatdisplays the frame at the intersection of the time marker 125 and thespeed bar 105. FIG. 2 illustrates one such GUI 200. In thisillustration, the GUI 200 displays two tracks 205 for inserting,stacking, and editing video clips, and three tracks 210 for inserting,stacking, and editing audio tracks. It also illustrates the intersectionof the time marker 125 and the speed bar 105 at playback time 220 andcontent time 225. In addition, it illustrates that the GUI 200 has apreview window 215. In this figure, the preview window 215 is presentingthe frame that appears in the video clip on the video track 205 b attime 225 (i.e., at the content time of the intersection of the timermarker 125 and the speed bar 105).

As illustrated in FIGS. 1A and 1B, some embodiments illustrate values145 along the playback timeline 115 on top of the video-clip box 110.This has the advantage of allowing one set of playback time values 145to be specified for several video and audio tracks 205 and 210 that arebeing displayed in the GUI of a video editing application, asillustrated in FIG. 2.

Also, displaying the playback time values on top of the video-clip box110 frees up the bottom side of these boxes for placing speed indicators150. Speed indicators are marks placed along the playback time line 115to indicate how the video clip's frames are extended or condensed by thespeed effects specified by the editor. The speed indicators 150 movecloser and further as the frames are set to appear closer and furtherapart. In other words, the distance between the speed indicatorsillustrates the speed effects that are being achieved. In some cases, aneditor might forego viewing the speed bar and instead perform speedadjustments by simply relying on the speed indicators. As furtherdescribed below, the speed indicators in some embodiments have one color(e.g., black) when the edited presentation traverses forward through avideo clip and have another color (e.g., red) when the presentationtraverses backwards through the clip.

Through the speed bar 105, an editor can easily add or modify speedeffects to a video clip. Specifically, the editor can change theplayback speed at any point in the playback time by deforming the speedbar 105 at that point in time. For instance, in some embodiments, a usercan deform the speed bar 105 through a simple click-and-drag operation.

FIGS. 3-13 illustrate examples of click-and-drag operations in someembodiments. FIG. 3 shows the start of a click-and-drag operation. Inthis figure, the click-and-drag operation is started by placing a cursor305 at a location 310 on the speed bar 105 and performing aclick-and-hold operation (e.g, depressing a mouse button and holdingthis button depressed). As shown in FIG. 3, the moment that the userstarts the click-and-hold operation at a location 310, a “keyframe” 315is defined on the speed bar 105 at the location 310. A keyframe is apoint along the speed bard 105 that is used to define and draw the speedbar, as further described below. As shown in FIG. 3, a speed bar has atleast two keyframes, one 320 at its beginning and one 325 at its end.The editor can add new keyframes between the endpoint keyframes to givethe speed bar any desire shape. If the keyframe 315 was defined atlocation 310 previously, the click-and-hold operation (that starts theclick-and-drag operation) would not create another keyframe at thelocation 310, but rather would simply select the previously definedkeyframe. The editor can also delete a previously defined keyframe. Forinstance, in some embodiments, the editor can delete a keyframe bypressing the control key, performing a click-and-hold operation on akeyframe, and selecting a “delete” option that appears in a menu windowthat appears after the click operation. When a keyframe is deleted, thespeed bar is redrawn to account for the deletion.

A keyframe along the speed bar specifies the exact playback time for aframe that is within a video clip at a particular content time. Thisspecification, in turn, allows an editor to specify any arbitrarytraversal and speed for this traversal through the video clip. Theeditor can add or edit speed-effects by adding, deleting, and movingkeyframes on the speed bar.

More specifically, as shown in FIG. 3, a rectangle 330 appears about thelocation 310 on which the click-and-hold operation is performed. Thisrectangle is a graphical representation of the video clip. Thehorizontal length of this rectangle is a pictorial representation of thevideo clip. Accordingly, this rectangle's horizontal alignment with thekeyframe 315 appearing at 310 provides a quick indication of thelocation of the video-clip frame that is currently set to appear at theplayback-time value 335 of the location 310.

Some embodiments display in a preview window the frame that is set toappear at the playback-time value of a newly defined keyframe or of aselected, previously defined keyframe. For instance, FIG. 4 illustratesa frame in the preview window 215 when the keyframe 405 is defined orselected. This frame is a frame that appears within the video clip atthe content-time value 410 of the keyframe 405, and that is set toappear in the playback presentation at the playback-time value 415 ofthe keyframe 405. The preview display of a frame associated with akeyframe provides an editor with an immediate visual feedback regardingthe playback presentation, and thereby facilitates the editor's speedeffects editing.

As shown in FIG. 4, some embodiments display a chart 420 next to therectangle 330 (that represents the video clip) when a keyframe isselected, altered, or defined. This chart lists a variety of statisticsregarding the keyframe. In the example illustrated in FIG. 4, thesestatistics include the keyframe's playback-time value, the speed bar'sslope to the left and right of the keyframe, and the keyframe'scontent-time value before and during the click-and-drag operation.

FIG. 4 further illustrates a speed-effects icon 425. In someembodiments, the editor can use this icon to display certainspeed-effect data and enable certain speed-effect functionality. Forinstance, in some embodiments, the data chart 420 and video-cliprectangle 335 appear for a selected keyframe once the speed-effects icon425 is selected.

In addition, after the user clicks on the speed-effect icon 425, theuser can create a keyframe at a particular playback time, by clickingthe cursor somewhere in the video track 205 b and dragging the cursor tothe particular playback time. This click-and-drag operation, in someembodiments, initially directs the application to display a playhead anda keyframe at the intersection of this playhead and the speed bar(assuming no keyframe was previously defined at this intersection; ifsuch a keyframe was previously defined, the operation selects thepreviously defined keyframe instead of creating a new one).Subsequently, as the editor drags the cursor, the playhead scrollsacross the speed bar and the keyframe moves across this graph, untilreaching the particular playback time.

Some embodiments also allow an editor to create a keyframe at aparticular playback time and a particular content time by simplyclicking on the speed bar at the intersection of the particular playbackand content times. The editor can direct the application to display thespeed bar through a variety of ways. One way is to press the control keyand click within the video track 205 b. This operation directs theapplication to display a menu window, which has one option that theeditor can select to view the speed bar.

FIG. 5 shows the keyframe 315 after it has been moved to a new position505. This movement can be achieved by starting a click-and-dragoperation at 310 (as shown in FIG. 3), and dragging the cursor uptowards 505. This movement moves the video-clip rectangle 330 to theleft, since it moves the keyframe 315 to a later point along the contenttimeline. Specifically, when the keyframe is moved from 310 to 505, thevideo-clip rectangle 330 scrolls leftwards across the keyframe.

In FIG. 5, the motion of the keyframe from 310 to 505 could also beachieved by dragging the cursor to the right after starting theclick-and-hold operation at 310. To the editor, this dragging would bevisually perceived as moving the video-clip rectangle 330 to the leftand moving the keyframe 315 up, which would correspond to moving to alater content time in the video clip.

FIG. 6 shows the keyframe 315 after it has been moved to a new position605. This movement can be achieved by starting a click-and-dragoperation at 310 (as shown in FIG. 3), and dragging the cursor downtowards 605. This movement moves the video-clip rectangle 330 to theright, since it moves the keyframe 315 to an earlier point along thecontent timeline. Specifically, when the keyframe is moved from 310 to605, the video-clip rectangle 330 scrolls rightwards across thekeyframe.

In FIG. 6, the motion of the keyframe from 310 to 605 could also beachieved by dragging the cursor to the left after starting theclick-and-hold operation at 310. To the editor, this dragging would bevisually perceived as moving to an earlier content time in thevideo-clip rectangle 330 in order to move the keyframe 315 down.

When the keyframe moves along the content timeline (e.g., when it isdragged from 310 to 505 or to 605), the frames that appear in a previewwindow 215 change in some embodiments. In other words, whenever akeyframe makes a transition along the content timeline that correspondsto a transition from a first frame to a second frame, the display in thepreview window 215 changes from the first frame to the second. Theframes in the preview window change with the movement of the keyframealong the content timeline in order to help the editor associate aparticular frame with a particular keyframe (i.e., to select aparticular frame to appear at a particular playback time).

In some embodiments, the movement of the keyframe and the video-cliprectangle can be modified during a click-and-drag operation by pressinga particular key. For instance, some embodiments scroll through theframes one frame at a time when the command key is pressed during aclick-and-drag operation that moves a keyframe along the contenttimeline. In addition, some embodiments scroll through the frames byjumping along the content timeline at 10% speed intervals, when theshift key is pressed during a click-and-drag operation that moves akeyframe along the content timeline.

Also, when the option is key pressed during a click-and-drag operationthat drags the cursor left or right, some embodiments move the keyframeleft or right instead of scrolling through the frames. In other words,during such a click-and-drag operation, these embodiments keep thekeyframe tied to the frame that the keyframe was associated with at thestart of the click-and-drag operation, and just translate the cursormovement to the motion of the keyframe along the playback timeline. Inessence, this motion moves the keyframe's associated frame to an earlieror later point in the playback timeline. FIGS. 7 and 8 illustrate anexample of moving the keyframe 315 left from position 505 to position805 in the speed bar's coordinate system, by pressing the option keywhile performing a click-and-drag operation that moves the cursor 305left.

Although a set of operations have been described above for modifying theposition of keyframes and video-clip rectangles, one of ordinary skillwill realize that other embodiments might use a different set ofoperations to change the position of keyframes and video-cliprectangles. For instance, without requiring the pressing of any keyboardkey, some embodiments might move the keyframe left or right when theclick-and-drag operation moves the cursor left or right. Theseembodiments might then move the keyframe up or down when a particularkey (e.g., the option key) is pressed and a click-and-drag operationmoves the cursor left or right.

As illustrated in FIGS. 3-8, the movement of a keyframe changes theshape of the speed bar. For instance, in FIG. 3, the speed bar 105 has aconstant slope of 0.1, which indicates a constant playback speed that isone tenth the speed of video clip. However, when in FIG. 5 the keyframe315 is added and moved up to position 505, the shape of the speed barchanges from a straight line to two line segments 510 and 515. The slopeof the line segment 510 is greater than the line segment 515 to indicatethat the playback speed is faster prior to playback time 335 (at thepoint that the line segment 510 terminates) than the playback speedafter the playback time 335 (at the point that the line segment 515starts).

On the other hand, when in FIG. 6 the keyframe 315 is moved down toposition 605, the shape of the speed bar is specified by two linesegments 610 and 615, where in this case the slope of the first linesegment 610 is less than the slope of the second line segment 615. Thesediffering slopes indicate that the playback speed is slower beforeplayback time 335 (at the point that the line segment 610 terminates)than the playback speed after the playback time 335 (at the point thatthe line segment 615 starts).

FIGS. 3-8 illustrate that the speed indicators 150 get closer to eachother when the slope of the speed bar increases, and get further apartwhen the slope of the speed bar decreases. For instance, in FIG. 3, thespeed indicators 150 are evenly spaced apart to indicate the constantslope of the speed bar 105 (i.e., to indicate the constant speedeffect). However, in FIG. 5, the speed indicators 150 are closer beforethe playback time 335 (at the point that the line segment 510terminates) than the speed indicators after the playback time 335 (atthe point that the line segment 515 starts). These differing spacingsare a visual indication that the playback speed is faster before 335than it is after 335 (i.e., that the slope of the line segment 510 isgreater than the slope of the line segment 515). Conversely, in FIG. 6,the speed indicators 150 are farther apart before the playback time 335than the speed indicators after the playback time 335, in order toprovide a visual indication that the playback speed is slower before 335than it is after 335 (i.e., that the slope of the line segment 610 isless than the slope of the line segment 615).

Once the editor positions a keyframe at a desired location, the editorterminates the click-and-drag operation (e.g., releases the mousebutton). At this point, the playback and content timeline values of thekeyframe are set. FIG. 9 conceptually illustrates a keyframe datastructure 900. As shown in this figure, this data structure includes aplayback time and a content time, which correspond to the playback andcontent timeline values of a keyframe.

This figure also illustrates that the data structure includes two otherattributes, which are the coordinates of an inbez knob and thecoordinates of an outbez knob. These coordinates are defined in thecoordinate system that is specified by the playback and contenttimelines 115 and 120. The inbez and outbez knobs are two additionalpoints that are associated with each keyframe. These two knobs are usedto draw a smooth curve through each keyframe.

Specifically, some embodiments allow an editor to specify a speed barthat is a smooth spline curve, instead of one or more line segments. Forinstance, FIG. 10 illustrates a smooth speed-bar curve 1005 that is asmoothed-out version of the speed bar illustrated in FIG. 5. FIG. 10illustrates the outbez knob 1010 and the inbez knob 1015 of the keyframe315. By changing the position of these knobs, the editor can change theshape of the speed bar. For instance, in FIG. 10, the editor can add tothe curvature of the speed bar about the keyframe 315 by moving theoutbez knob 1010 down and/or moving the inbez knob 1015 up. In someembodiments, the outbez and inbez knobs can move independently of eachother, although their default operation is to move one when the otherone is moved; in these embodiments, the default operation can be usurpedand a particular knob can move independently of the other by pressingdesignated key or keys (e.g., the space bar and/or the command key)while moving the particular knob.

Every keyframe has inbez and outbez knobs. However, the inbez knob ofthe keyframe at the start of the playback time, and the outbez knob ofthe keyframe at the end of the playback time are set to default values,which are not changeable by the editor. Also, when the speed bar is astraight line, the values of these knobs are set to default values thatare ignored, as these knobs are not moveable by the editor when thespeed bar is a straight line. An editor can direct the application tocreate and display the inbez and outbez knobs of a keyframe by pressingthe control key, performing a click-and-hold operation on the keyframe,and then choosing a “smooth” option in a menu that appears after theclick.

The inbez and outbez knobs of the keyframes are used to generate a speedbar with smooth curves. In other words, the inbez and outbez valuesalong with the coordinates of the keyframes are plugged into a standardmathematical expression for drawing a bezier curve, and the solution forthis expression provides the smooth shape of the speed bar. See, e.g.,Pages 489-497 of Foley, J. D., Dam, A. v., Feiner, S. K., and Hughes, J.F.: Computer Graphics, Addison Wesley Publishing Company, SecondEdition, 1990.

Keyframes can also be used to specify a playback presentation thattraverses forwards and backwards through a video clip. FIGS. 11 and 12present an example that illustrates how this can be achieved in someembodiments. FIG. 11 illustrates the smooth speed bar 1005 of FIG. 10after a user has started a click-and-drag operation. In this example,the user has started this operation by clicking at location 1105 of thespeed bar 1005. This clicking creates a keyframe 1110 at this location.The user then drags the cursor down from position 1105 to position 1205,which is illustrated in FIG. 12, and then ends the click-and-dragoperation (e.g., releases the mouse button). The user can also specifyinbez and outbez knobs for the keyframe 1110 by pressing the controlkey, performing a click-and-hold operation on the keyframe 1110, andthen choosing a “smooth” option in a menu that appears after the click.

As shown in FIG. 12, the result of this click-and-drag operation is aspeed bar that traverses forward through the video clip from the startof the playback time to playback time 1210, then traverses backwardsthrough the video clip from the playback time 1210 to the playback time1215, and then starts traversing forwards again from playback time 1215to the end of the playback interval. This traversal means that theplayback presentation first displays the video clip in a forwarddirection up to clip time 1220, then displays the video clip in abackward direction from clip time 1220 to clip time 1225, and thendisplays the video clip in the forward direction from clip time 1225until the end of the clip. The speed of these forward and backwardsegments is dictated by the slope of the speed bar at each time instancein these segments.

FIG. 13 illustrates that some embodiments allow the editor to flip thespeed bar about its x-axis (i.e., about the playback timeline 115).Specifically, this figure illustrates a speed bar 1305 that is asymmetrical equivalent of the speed bar 1200 illustrated in FIG. 12. Thespeed bar 1305 has been obtained by flipping the speed bar 1200 aboutits x-axis. In other words, the speed bar 1305 specifies a playbackpresentation that is in a reverse order from the playback presentationspecified by the speed bar 1200 of FIG. 12.

FIG. 14 illustrates a speed dialog box 1405 that an editor can use toreverse the order of a speed bar. In some embodiments, the editor canview this dialog box by selecting a speed menu item under the Modify1410 in the menu. The editor can then click the reverse box 1415 todirect the editing application to reverse the order of the speed bar. Asshown in FIG. 14, the speed dialog box 1405 also allows the editor toclick a frame-blending box 1420, which directs the editing applicationto perform frame blending during the playback of the speed effects. Theediting application's frame blending operation will be further describedbelow. As further shown in this figure, the speed dialog includes adrop-down window that allows the editor to select a variable speedoption, which changes a constant slope speed bar to a speed bar with avariable slope (i.e., changes a straight-line speed bar to a curvedspeed bar).

II. Software Architecture

FIG. 15 illustrates the software architecture of some embodiments of theinvention. As shown in this figure, this architecture includes a videoediting application 1510, a data storage 1505, an effects manager 1515,and a frame buffer 1520. The editing application allows an editor tocreate video presentations by editing and combining one or more videoclips, one or more audio tracks, and/or one or more video or audioeffects. The editor interfaces with the video editing application 1510through a graphical user interface (such as the ones illustrated inFIGS. 2, 4, and 14). This GUI includes the invention's speed bar whoseoperations and attributes were described above. Accordingly, the videoediting application 1510 receives an editor's speed effects selectionsthrough its GUI and its associated speed bar. Based on these receivedeffects, the video editing application generates the speed bar and itsassociated attributes. The generation of this graph will be furtherdescribed below by reference to FIG. 16.

The video editing application 1510 retrieves video clips and audiotracks from the data storage 1505. It also uses this data storage tostore the presentations that it creates and renders. During the editingprocess, this application 1510 uses the effects manager 1515 to applyits effects in real-time. Specifically, each time the editor enters anew speed effect or modifies an existing, effect the editing application1510 submits the speed effect additions or modifications to the effectsmanager 1515. During the real-time playback preview of the speedeffects, the effects manager 1515 then retrieves frames individuallyfrom the data storage 1505, and provides frames individually to theediting application 1510, based on the speed effects that it previouslyreceived from the editing application 1510. The editing application thendecompresses and, when needed, blends the frames that it receives fromthe effects manager. This application then stores the decompressed andpotentially frame-blended data in the frame buffer for display in apreview window of its GUI. The operation of the editing application 1510and the effects manager 1515 will be further described below byreference to FIGS. 17 and 18. In some embodiments, the effects manageris part of the QuickTime engine of Apple Computer, Inc.

FIG. 16 illustrates a process 1600 that the video editing applicationperforms each time that it potentially receives speed effect additionsor modifications through a speed bar displayed in its GUI. This processstarts when the editing application detects a click event, which mightsignify a potential modification to the speed bar. For instance, theediting application detects such a potential modification when theeditor clicks on a speed bar displayed in the application's GUI, or whenthe editor clicks somewhere in a video track after selecting thespeed-effects icon 425.

As shown in FIG. 16, this process initially determines (at 1605) whetherthey detected click event (i.e., the event that started the process1600) selected a previously defined keyframe (e.g., whether the eventwas a click event was on a previously defined keyframe on the speedbar). If so, the process displays (at 1610) in the GUI preview windowthe frame currently associated with the selected keyframe. This frame isthe frame that appears in the video clips at the current content timevalue of the selected keyframe.

Next, the process displays (at 1615) the video-clip rectangle 330 aboutthe selected keyframe. The process then determines (at 1620) whether anycursor drag has been detected (by the computer systems I/O drivers) forthe click event that started this process. If so, the process thendetermines (at 1625) whether the option key has been pressed and thecursor movement is in the right or left direction. As mentioned above,some embodiments move the keyframe up or down in response to a right orleft click-and-drag operation when the option key is not pressed, butmove the keyframe left or right in response to a left or rightclick-and-drag operation when the option key is pressed.

When the process determines (at 1625) that the option key has not beenpressed or that the cursor movement is not in the left or rightdirection, it transitions to 1630. At 1630, the process derives the newposition of the video-clip rectangle 330 based on the keyboard input andthe cursor movement. As mentioned above, some embodiments move thevideo-clip rectangle by 10% intervals when the shift key is pressedduring a click-and-drag operation, while scrolling through the framesone frame at a time when the command key is pressed during aclick-and-drag operation. This is the reason why the process 1600identifies (at 1630) the video-clip rectangle's new position based notonly on the cursor movement but also on the keyboard input.

Next, the process identifies (at 1635) a new position of the selectedkeyframe based on the keyboard input and the cursor movement. Theidentification at 1635 of the keyframe position is analogous to theidentification at 1630 of the video-clip rectangles new position. Infact, in some embodiments, the process 1600 derives (at 1635) the newkeyframe location from the new video-clip rectangle position identifiedat 1630. Conversely, some embodiments first identify the new keyframeposition, and then based on this position identify the new position ofthe video-clip rectangle at 1635.

At 1635, the process records the identified new position of the keyframe(i.e., the keyframe's playback and content time values) in thekeyframe's data structure. At this stage, the process does not need torecord new inbez and outbez values in this data structure as thesevalues have not changed. (These values change when the editor manuallymoves one or both of the knobs, and at that time, the applicationrecords these new values and modifies the speed bar.) After 1635, theprocess identifies (at 1640) the frame that appears in the video clip atthe selected keyframe's content time value, which was just set at 1635.The process displays (at 1640) this frame in the preview window of theGUI. Next, the process (at 1645) redraws the speed bar based on theattributes of this bar's keyframes and known mathematical expressionsfor drawing straight lines and/or bezier curves based on suchattributes. At 1645, the process also redraws the speed indicators basedon the slope of the newly drawn speed bar. From 1645, the processtransitions back to 1620. This backward transition will be describedfurther below.

If the process determines (at 1625) that the option key is pressed andthat the cursor movement is in the left or right direction, the processderives (at 1650) a new position for the keyframe based on the cursormovement. It then records (at 1650) the identified new position of thekeyframe (i.e., the keyframe's playback and content time values) in thekeyframe's data structure. The process does not need to record (at 1650)new inbez and outbez values in this data structure since these values donot change by such a drag operation; as mentioned above, in someembodiments, these values change only when the editor manually moves oneor both knobs associated with a keyframe. From 1650, the processtransitions to 1645, which was described above.

When the process transitions from 1645 to 1620, the process determineswhether the cursor is still being dragged. If so, it repeats operations1625-1650 to modify the speed bar again based on the dragging since thelast iteration through 1625-1650. On the other hand, when the processdetermines (at 1620) that the cursor is no longer being dragged, itdetermines (at 1655) whether the click event that started this processhas terminated (e.g., whether the mouse button has been released). Ifnot, the process returns to 1620, which was described above. Otherwise,the process sends (at 1660) the specified speed effects to the effectsmanager 1515, and then ends. The setting of the speed effects with theeffect manager will be further described below by reference to FIG. 17.

If the process 1600 determines (at 1605) that the click event thatstarted the process 1600 does not select a previously specifiedkeyframe, the process creates (at 1665) a new keyframe at the speed barlocation corresponding to the location of the click. At 1665, theprocess also sets the attributes of the new keyframe in a new datastructure for this keyframe. The playback and content time values forthis keyframe are the coordinates of the click, while its inbez andoutbez values are set to default values. From 1665, the processtransitions to 1610, where it displays in the GUI preview window theframe currently associated with the keyframe created at 1665. This frameis the frame that appears in the video clip at the current content timevalue of the created keyframe. From 1610, the process transitions to1615, which was described above.

FIG. 17 illustrates a process 1700 that the video-editing application1510 performs to relay the speed effects that are defined by a speed barto the effects manager 1515. Essentially, this process walks along theplayback timeline 115 at defined increments, and each time it detects atransition along the speed bar from one discrete content-time value toanother it sends a set of effects data to the effects manager.

As shown in FIG. 17, the process 1700 initially defines (at 1705) avariable Playback_Interval. In some embodiments, this variable equals100 sample durations (i.e., the duration of 100 samples, which, in someembodiments, corresponds to one integer value along the contenttimeline). Next, at 1710, the process then initializes a variablePlayback_Time to the start of the playback timeline, and initializes avariable Duration to 0. The process then sets (at 1715) a variableContent_Time, which is the content-time value of the speed bar atplayback-time value Playback_Time. It then sets (at 1720) a variableCurrent_Frame_Id to a value that identifies the frame that appears inthe video clip at the identified Content_Time. In some embodiments, theCurrent_Frame_Id is the identified Content_Time after this time isadjusted for the media offset.

At 1725, the process determines whether Playback_Time corresponds to theplayback interval. If so, the process ends. If not, the processincrements the variables Playback_Time and Duration by thePlayback_Interval. It then identifies (at 1735) the content-time valueof the speed bar at the current Playback_Time. Next, the processdetermines (at 1740) whether the content time identified at 1735 whenrounded down is different than the rounded down value of theContent_Time variable. If not, the process returns back to 1725.

If so, the process calls (at 1745) the effects manager with the valuesfor the variables Current_Frame_Id and the Duration. The process thensets (at 1750) Duration to zero. It then sets (at 1755) Current_Frame_Idto a value that identifies the frame that appears in the video clip atthe content-time value identified at 1735. From 1755, the processtransitions back to 1725, which was described above.

When the editor selects the frame blending option for a set of speedeffects that are specified by a speed bar, the video-editing applicationperforms the process 1700 twice. The first time is exactly as describedabove. The second time, however, is slightly different in that in thisiteration the process initializes (at 1710) the Playback_Time to thePlayback_Interval (which, as mentioned above, equals one integer valuealong the content timeline) instead of 0. In this manner, the twoiterations of the process 1700 direct the effects manager to provide twosets of frame data for the video clip, where the second set is ahead ofthe first set by one content time integer.

More specifically, for each iteration of the process 1700 that isperformed, the effects manager uses the information received throughthis iteration to supply a stream of frames to the video-editingapplication. The effects manager can provide its stream of frames at ahigher rate than the frame change rate of the playback presentation, ifthe duration of the Playback_Interval is less than one integer valuealong the content timeline.

One example of the operation of the operation of the effects manager1515 and the video editing application 1510 will now be described.Assume that an editor has not selected the frame blending option andthat the editor has applied the simple constant speed effect illustratedin FIG. 1B. As mentioned above, this speed effect specifies the playbackspeed as 1/10^(th) the content speed. Assuming that the video clip onlycontains 30 frames and that the frame rate is 30 fps, this speed effectwould require the playback presentation to be 10 seconds long instead of1 second. So, in this example, each frame would have to be displayed forone-third of a second. Assuming that the effects manager provides a newframe to the video-editing application at each one-ninth of a second,the effects manager would provide each frame to the video-editingapplication three times.

Now, assume that in the example above the editor had selected theframe-blending option. In this case, the video-editing application wouldperform the process 1700 twice, once as described above and once withthe Playback_Time initialized (at 1710) to the Playback_Interval. Inthis case, FIG. 18 illustrates that the effects manager would providetwo sets of frames (set A and set B) to the video-editing application.Specifically, each one-ninth of a second, the effects manager wouldprovide two new frames (one from set A and one from set B) to thevideo-editing application. As shown in this figure, the frame set B isalways ahead of frame set A by one frame.

When the video-editing application receives a frame from the effectsmanager, it decompresses the frame. If frame blending has not beenselected, the video-editing application receives only one frame at atime. Hence, after decompressing this frame, it writes the decompressedframe into the frame buffer 1520. On the other hand, when frame blendingis selected, the video-editing application receives two frames at atime. It decompresses both these frames, and then uses standard frameblending techniques to blend the two frames. The application then writesthe result of the blending into the frame buffer.

For instance, as mentioned above, the effects manager provides twodifferent frames to the video-editing application each one-ninth of asecond in the example illustrated in FIG. 18, as frame blending wasselected in this example. In this case, one way for the video-editingapplication to perform frame blending is to multiply the frame from setA by a blending parameter alpha, multiply the frame from set B by ablending parameter beta, and then add the results of thesemultiplications. At the start of a frame transition along each set, theblending parameter alpha is larger than the blending parameter beta,while at the end of a frame transition along each set, the blendingparameter alpha is smaller than the blending parameter beta. Forinstance, alpha is larger than beta for blending frames 1805 and 1810and blending frames 1815 and 1820, but it is smaller than beta forblending frames 1825 and 1830 and blending frames 1835 and 1840. Thisfluctuation of alpha and beta values allows the video-editingapplication to display a video clip where the images would blend fromone video clip to the next.

FIG. 19 presents a computer system with which one embodiment of theinvention is implemented. Computer system 1900 includes a bus 1905, aprocessor 1910, a system memory 1915, a read-only memory 1920, apermanent storage device 1925, input devices 1930, and output devices1935. The bus 1905 collectively represents all system, peripheral, andchipset buses that communicatively connect the numerous internal devicesof the computer system 1900. For instance, the bus 1905 communicativelyconnects the processor 1910 with the read-only memory 1920, the systemmemory 1915, and the permanent storage device 1925.

From these various memory units, the processor 1910 retrievesinstructions to execute and data to process in order to execute theprocesses of the invention. The read-only-memory (ROM) 1920 storesstatic data and instructions that are needed by the processor 1910 andother modules of the computer system.

The permanent storage device 1925, on the other hand, is read-and-writememory device. This device is a non-volatile memory unit that storesinstruction and data even when the computer system 1900 is off. Someembodiments of the invention use a mass-storage device (such as amagnetic or optical disk and its corresponding disk drive) as thepermanent storage device 1925.

Other embodiments use a removable storage device (such as a floppy diskor Zip® disk, and its corresponding disk drive) as the permanent storagedevice. Like the permanent storage device 1925, the system memory 1915is a read-and-write memory device. However, unlike storage device 1925,the system memory is a volatile read-and-write memory, such as a randomaccess memory. The system memory stores some of the instructions anddata that the processor needs at runtime. In some embodiments, theinvention's processes are stored in the system memory 1915, thepermanent storage device 1925, and/or the read-only memory 1920.

The bus 1905 also connects to the input and output devices 1930 and1935. The input devices enable the user to communicate information andselect commands to the computer system. The input devices 1930 includealphanumeric keyboards and cursor-controllers. The output devices 1935display images generated by the computer system. For instance, thesedevices display IC design layouts. The output devices include printersand display devices, such as cathode ray tubes (CRT) or liquid crystaldisplays (LCD).

Finally, as shown in FIG. 19, bus 1905 also couples computer 1900 to anetwork 1965 through a network adapter (not shown). In this manner, thecomputer can be a part of a network of computers (such as a local areanetwork (“LAN”), a wide area network (“WAN”), or an Intranet) or anetwork of networks (such as the Internet). Any or all of the componentsof computer system 1900 may be used in conjunction with the invention.However, one of ordinary skill in the art would appreciate that anyother system configuration may also be used in conjunction with thepresent invention.

The invention described above allows an editor to add or modify speedeffects to a video clip quickly and intuitively. It also provides theeditor with an immediate feedback of the changes by displaying theaffected frames in a preview window. Moreover, the invention's abilityto apply speed effects in real-time makes the editing process muchfaster. When the editor completes editing speed effects and viewingreal-time application of these speed effects, the video-editingapplication can then perform the more time-consuming rendering operationthat renders the video clip to file. To perform this renderingoperation, the video editing application uses standard renderingtechniques.

While the invention has been described with reference to numerousspecific details, one of ordinary skill in the art will recognize thatthe invention can be embodied in other specific forms without departingfrom the spirit of the invention. Thus, one of ordinary skill in the artwould understand that the invention is not to be limited by theforegoing illustrative details, but rather is to be defined by theappended claims.

1-32. (canceled)
 33. A non-transitory computer readable medium storing a program for specifying playback speed effects for playing a video clip, the program comprising sets of instructions for: receiving a set of playback speed effects for the video clip through a selectable graph that is displayed on a display device, said graph correlating playback times of the video clip with content times of the video clip; identifying indicating a first portion of said graph that represents forward playback with a first set of markers of a first color; identifying indicating a second portion of said graph that represents backward playback with a second set of markers of a second color, wherein said second color is different from said first color; and displaying a presentation of the video clip that accounts for the set of playback speed effects defined for the video clip.
 34. The computer readable medium of claim 33, wherein said graph comprises a first axis and a second axis, and wherein said first set of markers and said second set of markers are displayed along said first axis.
 35. The computer readable medium of claim 34, wherein said first axis represents a playback-time of the video clip and said second axis represents a content-time of said video clip, any two markers in said first set of markers that are adjacent to each other represent a same content-time interval between the two adjacent markers, a first pair of adjacent markers is a first distance apart from each other, a second pair of adjacent markers is a second distance apart from each other, and said first distance is not equal to said second distance.
 36. The computer readable medium of claim 35, wherein any two markers in said second set of markers that are adjacent to each other represent a same negative content-time interval between the two adjacent markers, a first pair of adjacent markers is a first distance apart from each other, a second pair of adjacent markers is a second distance apart from each other, and said first distance is not equal to said second distance.
 37. The computer readable medium of claim 36, wherein said same negative content-time interval is equal in magnitude to said same content-time interval.
 38. The computer readable medium of claim 33, wherein said graph comprises a line bar, wherein said program further comprises sets of instructions for: indicating said first portion of the graph with a positive slope of said line bar; and indicating said second portion of the graph with a negative slope of said line bar.
 39. The computer readable medium of claim 38, wherein said first set of markers and said second set of markers are displayed below said line bar.
 40. The computer readable medium of claim 33, wherein the program further comprises a set of instruction for moving a first marker of said first set of markers closer to a second marker of said first set of markers in response to a modification of the graph that speeds up said forward playback between playback times identified by the first and second markers.
 41. The computer readable medium of claim 33, wherein the program further comprises a set of instructions for generating new markers in said second set of markers in response to a modification of the graph that increases the amount of content-time that is played backward.
 42. A computer readable medium storing a program for specifying playback speed effects for playing a video clip, the program comprising sets of instructions for: displaying a selectable graph on a display device, said graph correlating playback times of the video clip with content times of the video clip; receiving a set of playback speed effects for the video clip through a set of modifications of the selectable graph, wherein a modification to the selectable graph comprises a selection and movement of a portion of the graph; displaying a movable box around a selected portion of the graph while the portion is being moved; and changing a position of said movable box with respect to said portion as the portion is moved, wherein the position of the movable box with respect to said portion indicates a content time of the video clip.
 43. The computer readable medium of claim 42, wherein said selected portion indicates a playback time and a content time of the video clip.
 44. The computer readable medium of claim 42, wherein said box is positioned so that the selected portion of the graph is a fraction of the width of the box from an end of the box, wherein said fraction is proportional to the content time of the video clip represented by said selected portion compared to the full duration of the content of the video clip played at normal speed.
 45. The computer readable medium of claim 42, wherein the program further comprises a set of instructions for receiving a movement of the selected portion of the graph to increase the content time of the video clip at a given playback time, wherein said box moves with said selected portion and also moves relative to said selected portion of the graph, wherein said movement relative to said selected portion is proportional to said increase in the content time.
 46. The computer readable medium of claim 42, wherein the program further comprises a set of instructions for receiving a movement of the selected portion of the graph to increase the playback time of the video clip for a given content time, wherein said box moves with said selected portion and does not move relative to said selected portion.
 47. A computer readable medium storing a program for specifying playback speed effects for playing a video clip, the program comprising sets of instructions for: receiving a set of playback speed effects for the video clip through a set of modifications of a selectable graph that is displayed on a display device, wherein the selectable graph represents a playback-time at multiple points in said video clip in relation to a content-time at said multiple points in said video clip, wherein the set of modifications comprises a set of click-and-drag operations; and displaying in real-time a presentation of the video clip that accounts for the set of playback speed effects defined for the video clip.
 48. The computer readable medium of claim 47, wherein the set of playback speed effects comprises speeding up a portion of the playback.
 49. The computer readable medium of claim 47, wherein the set of playback speed effects specifies a plurality of playback speeds for a plurality of intervals of said video clip.
 50. The computer readable medium of claim 47, wherein the program further comprises a set of instructions for converting the click-and-drag operation into a set of playback speed effect definitions.
 51. The computer readable medium of claim 47, wherein a set of instructions for receiving said click-and-drag operation comprises a set of instructions for monitoring the location of a cursor controlled by an electronic input device and the status of buttons of the electronic input device.
 52. The computer readable medium of claim 51, wherein the click-and-drag operation comprising receiving a selection, from the electronic input device, of a portion of the graph that appears at a first location within a window containing the graph and receiving an input from the electronic input device commanding a movement of the selected portion to a second location within the window. 